package cn.iocoder.yudao.module.erp.controller.admin.finance.financein.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 收入单新增/修改 Request VO")
@Data
public class FinanceInSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5729")
    private Long id;

    @Schema(description = "订单号")
    private String billNo;

    @Schema(description = "上游销售订单id", example = "23114")
    private Long linkId;

    @Schema(description = "上游销售订单号")
    private String linkNo;

    @Schema(description = "收款日期")
    private LocalDateTime billDate;

    @Schema(description = "收款金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "收款金额不能为空")
    private BigDecimal amount;

    @Schema(description = "付款方")
    private String payer;

    @Schema(description = "收入类型id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14113")
    @NotNull(message = "收入类型id不能为空")
    private Long incomeId;

    @Schema(description = "收入类型名称", example = "全款")
    private String incomeName;

    @Schema(description = "账户id", example = "19617")
    private Long accountId;

    @Schema(description = "账户名称", example = "张三")
    private String accountName;

    @Schema(description = "经办人id", example = "12139")
    private Long operatorId;

    @Schema(description = "经办人名字", example = "张三")
    private String operatorName;

    @Schema(description = "项目id", example = "16265")
    private Long projectId;

    @Schema(description = "项目名称", example = "张三")
    private String projectName;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "附件")
    private String file;

}